Skip to content

[ISSUE #8428] Use protocol-specific discovery configuration in mixed starters - #8540

Open
YuStriving wants to merge 1 commit into
apache:masterfrom
YuStriving:fix/8428-starter-discovery-config
Open

YuStriving wants to merge 1 commit into
apache:masterfrom
YuStriving:fix/8428-starter-discovery-config

Conversation

@YuStriving

Copy link
Copy Markdown

Related to #8428.

Problem and change

With Spring MVC present, the primary HTTP ClientRegisterConfig can reach gRPC and WebSocket discovery listeners. Qualify those injection points with the existing protocol beans.

gRPC -> grpcClientRegisterConfig
WebSocket -> webSocketClientRegisterConfig

Evidence

  • Before the fix, mixed tests used /api in place of /grpc or /ws. gRPC also used the HTTP host and port.
  • Java 17 mvnw.cmd -pl ":shenyu-spring-boot-starter-client-grpc,:shenyu-spring-boot-starter-client-spring-websocket" -am verify "-Dmaven.javadoc.skip=true" passed in 29 modules. 1,064 tests passed and 4 skipped. Checkstyle, RAT, and the added-line quality check passed.
  • Both regression classes exercised single and mixed starters. Full clean install and branch-specific gateway E2E were unrun.

Compatibility

Scope is discovery bean selection. A code revert rolls back the change.

IssueSpec

IssueSpec-Mode: lightweight
IssueSpec-Reason: Correct mixed-starter bean selection under the existing discovery contract.
IssueSpec-Validation: Java 17 affected-reactor verify passed. See evidence above.

Checklist

  • Read the contribution guidelines.
  • Add regression tests.
  • Check the new production code quality rules.
  • Run full ./mvnw clean install -Dmaven.javadoc.skip=true.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant